package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.RolePrivilege;
import com.caigou.bean.cms.param.AssignPrivilegeParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePrivilegeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RolePrivilege record);

    int insertSelective(RolePrivilege record);

    RolePrivilege selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RolePrivilege record);

    int updateByPrimaryKey(RolePrivilege record);

    List<RolePrivilege> findPrivilegesByRoleCodes(@Param("roleCodes") List<String> roleCodes);

    int deleteByRoleCode(String roleCode);

}
